FROM ubuntu:20.04
RUN sed -i 's/archive/cn.archive/g' /etc/apt/sources.list \
  && apt update \
  && apt install -y tzdata \
  && apt install -y build-essential \
    libncurses-dev \
    flex \
    bison \
    libssl-dev \
    libelf-dev \
    git \
    bc wget cpio file \
    mtools xorriso grub-imageboot \
  && apt clean \
  && rm -rf /var/lib/apt/lists/*
CMD ["/bin/bash"]
